package com.litchi.service;

import com.litchi.spring.Autowired;
import com.litchi.spring.BeanNameAware;
import com.litchi.spring.Component;
import com.litchi.spring.InitializingBean;

/**
 * @author LitchiShell
 * @description:
 * @create 2022-04-17
 */
@Component
//@Scope("prototype")
public class UserService implements BeanNameAware, InitializingBean, UserInterface {

    @Autowired
    private OrderService orderService;

    private String beanName;

    private String param;

    public void test() {
        System.out.println(orderService);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("Initializing");
    }
}
